﻿@using Guan.CMS.Model.Entity
@using Guan.CMS.Web.Models
@{
    var pageTitle = string.IsNullOrWhiteSpace(ViewBag.Title) ? Global.SiteConfig.SiteName : ViewBag.Title + " - " + Site.SiteName;
    var metaKeywords = string.IsNullOrWhiteSpace(ViewBag.MetaKeywords) ? Global.SiteConfig.MetaKeywords : ViewBag.MetaKeywords;
    var metaDescription = string.IsNullOrWhiteSpace(ViewBag.MetaDescription) ? Global.SiteConfig.MetaDescription : ViewBag.MetaDescription;
    string controllerName = ViewContext.RouteData.Values["controller"].ToString();
    string menuKey = "Menu_" + controllerName;
    ViewData[menuKey] = true;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@pageTitle</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="keywords" content="@metaKeywords"/>
    <meta name="description" content="@metaDescription"/>
    @*<meta name="author" content="">*@
    @Styles.Render("~/Content/Site")
    @RenderSection("Styles",false)
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")"></script>
</head>
<body>
    <div class="main">
        <div class="header fn-clear">
            <div class="header_resize">
                <div class="logo fn-clear">
                    <img src="@Url.Content("~/Content/images/logo_img.gif")" alt="image" width="51" height="48" />
                    <h1>
                        <a href="@Url.Content("~/")">成信达<span>科技</span></a><small>您身边的电脑服务专家</small></h1>
                </div>
                <div class="menu_nav">
                    <ul>
                        <li@(ViewData["Menu_Home"]!=null?" class=active":"")>@Html.ActionLink("首页", "Index", "Home")</li>
                        <li@(ViewData["Menu_News"] != null ? " class=active" : "") > @Html.ActionLink("新闻中心", "Index", "News")</li>
                        <li@(ViewData["Menu_Products"] != null ? " class=active" : "") > @Html.ActionLink("产品列表", "Index", "Products")</li>
                        @*<li@(ViewData["Menu_Solutions"] != null ? " class=active" : "") > @Html.ActionLink("解决方案", "Index", "Solutions")</li>*@
                        <li@(ViewData["Menu_Service"] != null ? " class=active" : "") > @Html.ActionLink("服务支持", "Index", "Service")</li>
                        <li@(ViewData["Menu_AboutUs"] != null ? " class=active" : "") > @Html.ActionLink("关于我们", "Index", "AboutUs")</li>
                        <li class="last@(ViewData["Menu_ContactUs"]!=null ? " active" : "")">@Html.ActionLink("联系我们", "Index", "ContactUs")</li>
                    </ul>
                    @*<div class="search">
                        <form id="form" name="form" method="post" action="">
                            <span>
                                <input name="q" type="text" class="keywords" id="textfield" maxlength="50" value="搜索..." />
                                <input name="b" type="image" src="@Url.Content("~/Content/images/search.gif")" class="button" />
                            </span>
                        </form>
                    </div>*@
                    <!--search -->
                </div>
                <div class="clr">
                </div>
                
            </div>
        </div>
        <div class="content">
            @RenderSection("Banner", false)
            @RenderBody()
            <div class="footer">
                <div class="center">
                    @Global.SiteConfig.Footer
                </div>
                <div class="center">
                    @Html.Raw(Global.SiteConfig.StatisticsCode)
                </div>
            </div>
        </div>
    </div>
    
    @Scripts.Render("~/bundles/cufon")
    @RenderSection("Scripts",false)
</body>
</html>